package com.meixiang.activity.homes.staging;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.meixiang.R;
import com.meixiang.adapter.home.RepaymentDetailAdapter;
import com.meixiang.main.BaseActivity;
import com.meixiang.view.DividerItemDecoration;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * @author yinsujun  Created at 2016/5/5 16:39
 */
public class RepaymentDetailActivity extends BaseActivity {
    @Bind(R.id.title)
    TitleView title;
    @Bind(R.id.repayment_detail_recycler)
    RecyclerView detailRecycler;
    private RepaymentDetailAdapter repaymentDetailAdapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_repayment_detail);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        setTitle("已还款");

    }

    @Override
    protected void initView() {
        repaymentDetailAdapter=new RepaymentDetailAdapter(context,2);
        LinearLayoutManager layoutManager=new LinearLayoutManager(context);
        layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        detailRecycler.setLayoutManager(layoutManager);
        detailRecycler.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL_LIST));
        detailRecycler.setAdapter(repaymentDetailAdapter);
    }

    @Override
    protected void setData() {

    }

    @Override
    public void onClick(View v) {

    }
}
